<template>
  <div class="big">
    <div class="header">
      <div class="shopcart">
        购物车
        <span class="num">(0)</span>
      </div>
    </div>

    <!-- 底部 -->
    <div class="footer">
      <div class="right">
        <span class="iconfont icon-31xuanzhong"></span>
        全选
      </div>
      <div class="left">
        <span class="sum">合计￥0</span>

        <span class="total">去结算(0)</span>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {};
  },
};
</script>
 
<style lang = "less" scoped>
.big {
  position: relative;

  .header {
    width: 100%;
    height: 45px;
    background-color: rgb(245, 125, 145);
    position: relative;
    .shopcart {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      color: #fff;
    }
  }

  /* 底部 */
  .footer {
    position: fixed;
    bottom: 50px;
    right: 0;

    width: 100%;
    height: 40px;
    background-color: #ccc;
    .right {
      .iconfont {
        font-size: 22px;
      }
      span {
        color: rgb(158, 154, 154);
      }
      float: left;
      text-align: center;
      height: 40px;
      line-height: 40px;
      padding-left: 10px;
      font-size: 16px;
      color: rgb(102, 99, 99);
    }

    .left {
      display: flex;
      justify-content: flex-end;
      height: 40px;
      line-height: 40px;
      color: rgb(102, 99, 99);

      .total {
        height: 100%;
        display: block;
        background-color: red;
        color: #fff;
        padding: 0 5px;
      }
      .sum {
        margin-right: 20px;
      }
    }
  }
}
</style>